<?php 
/* import database connection variables */
require_once __DIR__ . '/db_config.php';

if(!$db){ 
echo "DB!";    exit();} 
$datas = array();
$get = mysql_query("select distinct(propinsi) from ekspedisi order by propinsi");
$show = array();while($k=mysql_fetch_array($get)){
$show[] = array(
	"id_ekspedisi"=>$k["id_ekspedisi"],
	"propinsi"=>$k["propinsi"]
	);
}
$datas2 = array("daftar_propinsi" => $show, "success"=>1);
$json_format = json_encode($datas2);
echo $json_format;
?>